import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listBill(query) {
  return request({
    url: '/buy/buy0003/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getBill(id) {
  return request({
    url: '/buy/buy0003/' + id,
    method: 'get'
  })
}

export function addBill(data) {
  return request({
    url: '/buy/buy0003/add',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateBill(data) {
  return request({
    url: '/buy/buy0003',
    method: 'put',
    data: data
  })
}


export function delBill(data) {
  return request({
    url: '/buy/buy0003/delBill',
    method: 'post',
    data: data
  })
}

export function updateBillStatus(data) {
  return request({
    url: '/buy/buy0003/updateBillStatus',
    method: 'post',
    data: data
  })
}


export function getInvoiceInfo(data) {
  return request({
    url: '/buy/buy0003/getInvoiceInfo ',
    method: 'post',
    data: data
  })
}

export function delInvoice(data) {
  return request({
    url: '/buy/buy0003/delInvoice ',
    method: 'post',
    data: data
  })
}

export function saveInvoice(data) {
  return request({
    url: '/buy/buy0003/saveInvoice ',
    method: 'post',
    data: data
  })
}

export function getNotPostItem(data) {
  return request({
    url: '/buy/buy0003/getNotPostItem ',
    method: 'post',
    data: data
  })
}

export function getPostItem(data) {
  return request({
    url: '/buy/buy0003/getPostItem ',
    method: 'post',
    data: data
  })
}

export function savePostItem(data) {
  return request({
    url: '/buy/buy0003/savePostItem ',
    method: 'post',
    data: data
  })
}
